package com.glory.erp.invoice.orderdetail.service.impl;

import java.io.Serializable;
import java.util.List;

import com.glory.erp.invoice.orderdetail.service.OrderDetailService;
import com.glory.erp.invoice.orderdetail.dao.OrderDetailDao;
import com.glory.erp.invoice.orderdetail.bean.OrderDetail;
import com.glory.erp.auth.base.BaseQueryModel;

public class OrderDetailServiceImpl implements OrderDetailService{
	private OrderDetailDao orderDetailDao;
	public void setOrderDetailDao(OrderDetailDao orderDetailDao) {
		this.orderDetailDao = orderDetailDao;
	}

	public void save(OrderDetail orderDetail) {
		orderDetailDao.save(orderDetail);
	}

	public void update(OrderDetail orderDetail) {
		orderDetailDao.update(orderDetail);
	}

	public void delete(OrderDetail orderDetail) {
		orderDetailDao.delete(orderDetail);
	}

	public OrderDetail findById(Serializable uuid) {
		return orderDetailDao.findById(uuid);
	}

	public List<OrderDetail> findAll() {
		return orderDetailDao.findAll();
	}

	public List<OrderDetail> findAll(BaseQueryModel qm, Integer pageNum,Integer pageCount) {
		return orderDetailDao.findAll(qm,pageNum,pageCount);
	}

	public Integer getCount(BaseQueryModel qm) {
		return orderDetailDao.getCount(qm);
	}

}
